
public class ClassLoaderTest {
	public static void main(String[] args) throws ClassNotFoundException {

		 

		System.out.println(System.getProperty("sun.boot.class.path"));

		System.out.println(System.getProperty("java.ext.dirs"));
		System.out.println("user.dir:"+System.getProperty("user.dir"));
		System.out.println(System.getProperty("java.class.path"));
		System.out.println(ClassLoader.getSystemClassLoader());
		System.out.println(ClassLoaderTest.class.getClassLoader());
		System.out.println(Class.forName("java.lang.String").getClassLoader());
		//System.out.println(Class.forName("org.apache.log4j.Appender").getClassLoader());
		System.out.println(ClassLoader.getSystemClassLoader().getParent());
		ClassLoader.getSystemClassLoader().getParent().loadClass("org.apache.log4j.Appender");
		System.out.println(org.apache.log4j.Appender.class.getClassLoader());
//sr		System.out.println);
	}
}
